package jing.app.hf.entities;

public class FinItem {
	public static final int TYPE_EXPENSE = 0;
	public static final int TYPE_REVENUE = 1;
	
	private float amount;
	private String name;
	private String description;
	private int type;
	
	private FinItem(float amount, String name, String description, int type) {
		this.amount = amount;
		this.name = name;
		this.description = description;
		this.type = type;
	}
	public static FinItem createExpenseItem(float amount, String name, String description) {
		return new FinItem(amount, name, description, TYPE_EXPENSE);
	}
	public static FinItem createRevenueItem(float amount, String name, String description) {
		return new FinItem(amount, name, description, TYPE_REVENUE);
	}
}
